<%@page import="bean.Konsumen"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="bean.Barang"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Kirim Barang</title>
    </head>
    <body bgcolor="grey">

        <h1 align="center" style="color:white"> Rekayasa Perangkat Lunak Terstruktur </h1>
        <h2 align="center" style="color:white"> Sistem Pencatatan Pengiriman Barang oleh JNE</h2>
        <h3 align="center" style="color:white"> Kelompok SMMD </h3>
        <br><br>
    <td><form action="FrameUtama.jsp"><input type="submit" name="home" value="HOME"/></form>
        <br><br>
        <form action="ProsesKirimBarang">
            <table border="1">
                <tr>
                    <td width="200" align="center" bgcolor="white"><font color="black">NO. BARANG</font></td>
                    <td width="200" align="center" bgcolor="white"><font color="black">BERAT BARANG</font></td>
                    <td width="200" align="center" bgcolor="white"><font color="black">JUMLAH BARANG</font></td>
                    <td width="200" align="center" bgcolor="white"><font color="black">JENIS BARANG</font></td>
                    <td width="200" align="center" bgcolor="white"><font color="black">BIAYA KIRIM</font></td>

                    <td width="200" align="center" bgcolor="white"><font color="black">PENGIRIM</font></td>
                    <td width="200" align="center" bgcolor="white"><font color="black">PENERIMA</font></td>
                    <td width="200" align="center" bgcolor="white"><font color="black">NO.TELP PENERIMA</font></td>
                    <td width="200" align="center" bgcolor="white"><font color="black">ALAMAT PENERIMA</font></td>
                </tr>
                <%
                            Barang barang = new Barang();
                            ResultSet res = barang.tampilDataBarang() ;
                              Konsumen kon = new Konsumen();
                                ResultSet res1 = kon.tampilDataKonsumen();
                           // ResultSet f=resres1;
                            while (res.next() && res1.next()) {
                %>
                <tr>
                    <td align="center"><%=res.getString("NO_BARANG")%></td>
                    <td align="center"><%=res.getString("BERAT_BARANG")%></td>
                    <td align="center"><%=res.getString("JUMLAH_BARANG")%></td>
                    <td align="center"><%=res.getString("JENIS_BARANG")%></td>
                    <td align="center"><%=res.getString("BIAYA_KIRIM")%></td>



                    <td align="center"><%=res1.getString("NAMA_PENGIRIM")%></td>
                    <td align="center"><%=res1.getString("NAMA_PENERIMA")%></td>
                    <td align="center"><%=res1.getString("NOTELP_PENERIMA")%></td>
                    <td align="center"><%=res1.getString("ALAMAT_PENERIMA")%></td>
                </tr>
                <% }%>

            </table>
        </form>
    </body>
</html>
